package com.wxx.design.bridge;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/23 21:19
 */
public class Test {
    public static void main(String[] args) {
        ICBCBank icbcBank = new ICBCBank(new DepositAccount());
        Account icbcAccount = icbcBank.openAccount();
        icbcAccount.showAccountType();

        ABCBank abcBank = new ABCBank(new SavingAccount());
        Account abcAccount = abcBank.openAccount();
        abcAccount.showAccountType();
    }
}
